home *** CD-ROM | disk | FTP | other *** search
- %OP%DP0
- %OP%IRY
- %OP%PL0
- %OP%HM0
- %OP%FM0
- %OP%BM0
- %OP%LM4
- %OP%FX
- %OP%FY
- %OP%FS
- %OP%PT1
- %OP%PDPipeLine
- %OP%WC820,2070,452,1620,0,0,0,0
- %OP%VS4.01 (22-Oct-91), Gerald Fitton, R4000 2915 6625 6368
- %CO:A,72,72%
- %C%Names
- %C%by Gerald L Fitton
- Keywords:
- Fitton
-
- Why Use Names
- Names are faster than using ranges and use up less memory, so it's a
- good idea to use named area in your spreadsheets rather than a range,
- especially if a function containing a range is replicated over a large
- area of your spreadsheet.
-
- Problems with Undefined Names
- Since the Pipedream 4 spreadsheet can use names to refer to values, to
- slots or to ranges then, if you have your 'New slot format' set to
- 'numbers' in the options dialogue box, sometimes difficulties arise.
-
- Load the file [StartEnd] and type Start-End. You will find that,
- because the 'New slot format', <Ctrl O>, is set to numbers, start-end
- appears in the formula line. When you tap <Return> you find the error
- message 'Name not defined' appears in slot A1. You will also notice
- that although you might have typed Start with a capital S, in the
- formula line the S appears as a lower case s. Names are not case
- sensitive so that Start and start are the same name.
-
- To overcome these problems you may need to change the 'new slot format'
- setting to text or to enter the text differently such as: Start to End
- or Start_End or "Start to end".
-
- Pipedream 4 specifically excludes the case of a single undefined name,
- so typing Start on its own into a slot will be treated as text. Give
- that a try and you will have no problem.
-
- Defining a Name
- Now place the pointer over the italic f (just to the right of the
- PipeDream 4 logo and to the left of the cross and tick boxes). This
- italic f is called the formula button. Click the select (left) mouse
- button and you will find a menu of functions appears. Run the pointer
- through Define name. Define Start (or start) as 12 by typing Start
- into the dialogue box called 'Name' and 12 into the dialogue box called
- 'Refers to'; repeat the process and define End as 9. When you have
- defined the two names, the error message in [StartEnd] disappears and
- the value 3 appears in its place.
-
- Using Names
- Load the file [VAT01]. Position the pointer in slot B6 over the
- 15.00%PC%. Click select and change the value to 17.5 (in the formula
- line). Do not type the %PC% sign. Click select on the green tick and the
- new value of VAT will be entered into the sheet. Users of PipeDream 3
- (or any other spreadsheet) will not be surprised to see the values of
- the VAT column, C, change and the changes ripple through column D and
- row 14.
-
- However, if you position the pointer in slot C11 and click select you
- will find, not B6 as you might suppose, but the word VAT appearing in
- the formula. Click select on the formula button (the italic f) and run
- the pointer through Edit name. You will see the name VAT; run the
- pointer further to the right and you will find the current definition
- of the name VAT. Click select in slot A1. Tap <F8> to delete a row
- and then look again at the definition of VAT in the Edit name dialogue
- box. You will see that it has been updated from B6 to B5. Insert a
- row with <F8> and the definition of the name will revert to B6.
-
- More Names
- Load the file [VAT02]. Position the caret in slot B4 and enter the
- number 2. The current VAT (slot B6) will change to 15.00%PC% and the
- effect will ripple through the spreadsheet. To understand the way in
- which this spreadsheet works position the caret in slot B6 and study
- the formula in the formula line. The function choose(n,list) selects
- the nth value from a list of values. In the spreadsheet [VAT02] the
- name whichvat is defined as the contents of slot B4 and the name
- vatrange is defined as range B5D5. Hence, if B4 contains 2, then the
- function choose chooses the second item from the range B5D5, namely
- 15.00%PC%. Similarly, if you enter 3 into B4, then you will find that the
- current VAT is 17.5%PC%.
-
- Currently I have PipeDream version 4.01 so that what I write next may
- not apply to later versions. I tried entering formula containing other
- names into the definition of a name, ie defining VAT in terms of VAT_1,
- VAT_2 and VAT_3 using choose(n,list), but it seems that the definition
- of a name can not include another name. For example, when I try
- editing the definition of VAT so that, in the Refers to dialogue box,
- it refers to VAT_1, I get the error message 'Value not defined'. If
- your version 'works' then please let me know and it will remind me to
- update this text.
-
- Summary
- Names can refer to values, slot references, ranges and arrays.
- Although I have not included an example in this directory, names can
- refer to text strings as well as numbers.
-